package com.u.social.sale.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单物流表
 * </p>
 *
 * @author Alex Wu
 * @since 2025-03-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_shipping")
public class OrderShipping implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 物流ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 物流单号
     */
    private String shippingNo;

    /**
     * 物流公司
     */
    private String carrier;

    /**
     * 物流状态（0-未发货, 1-运输中, 2-已签收, 3-异常）
     */
    private Integer shippingStatus;

    /**
     * 发货时间
     */
    private LocalDateTime shippingTime;

    /**
     * 预计送达时间
     */
    private LocalDateTime deliveryTime;

    /**
     * 实际签收时间
     */
    private LocalDateTime receiveTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
